import React from 'react';
import ThemeContext from "./context/ThemeContext";

const AppGirl = function () {
    let c = {}
    const x =
        <div>
            <ThemeContext.Consumer>
                {
                    value => {
                        c.x = value
                        console.log('赋值', c)
                        return <span style={value}>AppGirl 函数组件</span>
                    }
                }
            </ThemeContext.Consumer>
        </div>
    console.log('拿到值', c)
    return x
};
export default AppGirl